package com.lagou.edu.utils;

import com.alibaba.druid.pool.DruidDataSource;

/**
 * @ClassName: DruidUtils
 * @Description: 德鲁伊连接
 * @Date: 2021/3/9 15:39
 * @Create by: shuiren
 */
public class DruidUtils {

    private DruidUtils(){
    }
    private static DruidDataSource druidDataSource = new DruidDataSource();
    static {
        druidDataSource.setDriverClassName("com.mysql.jdbc.Driver");
        druidDataSource.setUrl("jdbc:mysql://172.16.1.234:3306/test_test");
        druidDataSource.setUsername("root");
        druidDataSource.setPassword("123");

    }
    public static DruidDataSource getInstance() {
        return druidDataSource;
    }

}
